/*
 * Database.h
 *
 *  Created on: May 3, 2011
 *      Author: Siddhi Mittal
 *
 * Adapted from: http://www.dreamincode.net/forums/topic/122300-sqlite-in-c/ online tutorial
 */

#ifndef __DATABASE_H__
#define __DATABASE_H__

#include <string>
#include <vector>
#include <sqlite3.h>

using namespace std;

class Database
{
public:
	Database(char* filename);
	~Database();

	bool open(char* filename);
	vector<vector<string> > query(char* query);
	void close();

private:
	sqlite3 *database;
};

#endif

